const getters = {
  sidebar: state => state.app.sidebar, // 取app模块属性sidebar
  device: state => state.app.device,
  token: state => state.user.token, // 取user模块属性token
  avatar: state => state.user.userInfo.avatar, // 头像
  nickName: state => state.user.userInfo.nickName, // 用户中文昵称
  userId: state => state.user.userInfo.userId, // 用户id
  permissions: state => state.user.permissions, // 按钮权限
  routers: state => state.user.routers, // 菜单权限
  oaProcessTemplate: state => state.approval.oaProcessTemplate // 审批设置
}
// getters这里只是做了一个便捷访问的作用
export default getters
